//
//  HBCollectionViewCell.m
//  Jlcf_ios
//
//  Created by zl on 2018/10/21.
//  Copyright © 2018年 ski. All rights reserved.
//

#import "QIxfosJLCFHBCollectionViewCellWxsVao.h"
@interface QIxfosJLCFHBCollectionViewCellWxsVao ()


@property (nonatomic, strong) UILabel *QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg;
@property (nonatomic, strong) UILabel *sTvtacpmoneyLabelIfJqAd;
@property (nonatomic, strong) UILabel *fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT;
@property (nonatomic, strong) UILabel *sBPFLwEdayLabelHMABqA;
@property (nonatomic, strong) UILabel *giYBLKtypeLabelcaoSry;


@end
@implementation QIxfosJLCFHBCollectionViewCellWxsVao


-(void)loadDat{

  
    if(!self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg){
        self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg = [UILabel new];
        
        self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg.top =13;
        self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg.left =19;
        self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg.font = FONT(14);
        self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg.textColor = Theme_Color;
        [self addSubview:self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg];
    }
    if (self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg) {
        self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg.text =[NSString stringWithFormat: @"%@元",self.welfare.hbmoney] ;
        [self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg sizeToFit];
    }
    
    if (!self.sTvtacpmoneyLabelIfJqAd) {
        self.sTvtacpmoneyLabelIfJqAd = [UILabel new];
        
        self.sTvtacpmoneyLabelIfJqAd.top = self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg.bottom+3;
        self.sTvtacpmoneyLabelIfJqAd.left =self.QnFGoshbTvtacpmoneyLabelIfJqAdMeWWUg.left;
        
        self.sTvtacpmoneyLabelIfJqAd.font = FONT(6);
        self.sTvtacpmoneyLabelIfJqAd.textColor = Theme_Color;
        [self addSubview:self.sTvtacpmoneyLabelIfJqAd];
        
    }
    
    if (self.sTvtacpmoneyLabelIfJqAd) {
        self.sTvtacpmoneyLabelIfJqAd.text = [NSString stringWithFormat:@"满%@元可使用",self.welfare.smoney] ;
        [self.sTvtacpmoneyLabelIfJqAd sizeToFit];
    }
    
    if (!self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT) {
        self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT = [UILabel new];
        self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT.top = 11;
        self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT.left = self.sTvtacpmoneyLabelIfJqAd.right + 10;
        self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT.width = 70;
        self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT.height = 6;
        self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT.font = FONT(6);
        self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT.textColor = QTZ_Gray51;
        
        [self addSubview:self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT];
    }
    
    if (self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT) {
        self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT.text = [NSString stringWithFormat: @"截止日期:%@",[self.welfare.hbendtime substringToIndex:10]] ;
        
//        [self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT sizeToFit];s
    }
    
    
    if(!self.sBPFLwEdayLabelHMABqA){
        self.sBPFLwEdayLabelHMABqA = [UILabel new];
        self.sBPFLwEdayLabelHMABqA.top = self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT.bottom + 10;
        self.sBPFLwEdayLabelHMABqA.left = self.fLhZkXhbendhnRcVmtimeLabelncDSPilAcPXT .left;
        self.sBPFLwEdayLabelHMABqA.font = FONT(6);
        self.sBPFLwEdayLabelHMABqA.textColor = QTZ_Gray51;
        
        [self addSubview:self.sBPFLwEdayLabelHMABqA];
    }
    
    if (self.sBPFLwEdayLabelHMABqA) {
        self.sBPFLwEdayLabelHMABqA.text = [NSString stringWithFormat:@"标的周期:%@天",self.welfare.sday];
        
        [self.sBPFLwEdayLabelHMABqA sizeToFit];
    }
    
    
    if(!self.giYBLKtypeLabelcaoSry){
        self.giYBLKtypeLabelcaoSry = [UILabel new];
        self.giYBLKtypeLabelcaoSry.top = self.sBPFLwEdayLabelHMABqA.bottom + 10;
        self.giYBLKtypeLabelcaoSry.left = self.sBPFLwEdayLabelHMABqA .left;
        self.giYBLKtypeLabelcaoSry.font = FONT(6);
        self.giYBLKtypeLabelcaoSry.textColor = QTZ_Gray51;
        
        [self addSubview:self.giYBLKtypeLabelcaoSry];
    }
    
    if (self.giYBLKtypeLabelcaoSry) {
        self.giYBLKtypeLabelcaoSry.text = [NSString stringWithFormat:@"标的类型:%@",self.welfare.hbname];
        
        [self.giYBLKtypeLabelcaoSry sizeToFit];
    }
    
    
    
    
   
}


//+ (instancetype)dequeueReusableCellForTableView:(UICollectionView *)KtNdmqcollectionviewRizTgm
//{
////    id cell = [KtNdmqcollectionviewRizTgm dequeueReusableCellWithReuseIdentifier:[self cellIdentifier] forIndexPath:[self cellIdentifier]];
////    if (!cell) {
////        cell = [[self alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[self cellIdentifier]];
////    }
////    return cell;
//}

@end
